import { ILocalStorage } from "../../ADCore/Interfaces/IGameManager";

export default class LocalStorage implements ILocalStorage {
    constructor() {
        Laya.LocalStorage.items
    }
    get items(): any {
        return Laya.LocalStorage.items
    }
    get support(): boolean {
        return Laya.LocalStorage.support;
    }
    setItem(key: string, value: string): void {
        Laya.LocalStorage.setItem(key, value);
    }
    getItem(key: string): string {
        return Laya.LocalStorage.getItem(key);
    }
    setJSON(key: string, value: any): void {
        Laya.LocalStorage.setJSON(key, value);
    }
    getJSON(key: string) {
        return Laya.LocalStorage.getJSON(key);
    }
    removeItem(key: string): void {
        Laya.LocalStorage.removeItem(key);
    }
    clear(): void {
        Laya.LocalStorage.clear();
    }
}